#ifndef _BBGRAPHICS2D_H_
#define _BBGRAPHICS2D_H_

#include "BBObject.h"

class BBGraphics2D : public BBObject
{
public:
	static BBGraphics2D* createGraphics2D(const char* pathFile);
public:
	BBGraphics2D(void);
	virtual ~BBGraphics2D(void);

#if (BB_TARGET_RENDEENQINE == BB_RENDEENQINE_COCOS2DX)
public:
	static BBGraphics2D* createGraphics2D(CCTexture2D* texture);
protected:
	CCTexture2D* addImage(const char* filePath);
	CCTexture2D* addPVRImage(const char* pvrFile);
	BB_CREATE_PROPERTY(CCTexture2D*,m_pGraphics,Graphics2D);
#endif

};

#endif //_BBGRAPHICS2D_H_